import React from 'react';
import {Route} from 'react-router';

import MenuPerfect from './components/';
import Page from './components/page'
import SubMenuPerfect from './components/subMenuPerfect'

import {WeaLocaleProvider} from 'ecCom';
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'portal');

const Routes = [
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@l0p6yc@MenuPerfect`} path="element" onEnter={getLocaleLabel} component={MenuPerfect}/>,
];

module.exports = {
    Route: Routes,
    com: {
        MenuPerfect,
        SubMenuPerfect,
        Page
    } ,titles:{
        MenuPerfect:"一级菜单",
        SubMenuPerfect: "二级菜单",
        Page: "链接页面显示区域"
    }

};
